﻿using DLLPC.Utilities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VisionCore
{
    public class MarkLocate
    {
        public MarkInfo[] Marks { get; set; } = new MarkInfo[3];

        public MarkLocate()
        {
            for (int i = 0; i < Marks.Length; i++)
            {
                Marks[i] = new MarkInfo(i + 1);
            }
        }
    }

    public class MarkInfo
    {
        public MarkInfo(int idx = 1)
        {
            Idx = idx;
            Finded = false;
            Mark = new PointRotation.Point();
            PMark = new PointRotation.Point();
            MarkPoint = new PointRotation.Point();
        }
        /// <summary>
        /// Mark 序号
        /// </summary>
        public int Idx { get; set; }

        /// <summary>
        /// Mark 已对位
        /// </summary>
        public bool Finded { get; set; }

        /// <summary>
        /// Mark 基准位置
        /// </summary>
        public PointRotation.Point Mark { get; set; }

        /// <summary>
        /// Mark 当前位置
        /// </summary>
        public PointRotation.Point PMark { get; set; }

        /// <summary>
        /// Mark与相机中心 偏移量
        /// </summary>
        public PointRotation.Point MarkPoint { get; set; }
    }
}
